package cn.liyunqi.ttv.web.mapper;

import cn.liyunqi.ttv.web.bo.MailLogInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MailLogInfoMapper {
    int deleteByPrimaryKey(String id);

    int insert(MailLogInfo record);

    int insertSelective(MailLogInfo record);

    MailLogInfo selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(MailLogInfo record);

    int updateByPrimaryKeyWithBLOBs(MailLogInfo record);

    int updateByPrimaryKey(MailLogInfo record);

    List<MailLogInfo> selectEffectiveCodeByMailAndCode(@Param("mail") String mail, @Param("mailCode")String mailCode, @Param("type") Integer type, @Param("effectiveTime")Long effectiveTime);

    int updateEffectiveCodeByMailAndCode(@Param("mail") String mail, @Param("mailCode")String mailCode,@Param("type") Integer type);
}